package com.ruoyi.airsystem.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备管理对象 air_devices
 * @date 2025-04-18
 */
public class AirDevices extends BaseEntity
{

    private Long[] roomIds; // 用于接收多个房间ID

    // 添加getter和setter
    public Long[] getRoomIds() {
        return roomIds;
    }

    public void setRoomIds(Long[] roomIds) {
        this.roomIds = roomIds;
    }
    private static final long serialVersionUID = 1L;

    /** 设备ID */
    private Long deviceId;

    /** 房间ID */
    @Excel(name = "房间ID")
    private Long roomId;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private String deviceName;

    /** 安装日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "安装日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date installationDate;

    public void setDeviceId(Long deviceId)
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId()
    {
        return deviceId;
    }
    public void setRoomId(Long roomId)
    {
        this.roomId = roomId;
    }

    public Long getRoomId()
    {
        return roomId;
    }
    public void setDeviceName(String deviceName)
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName()
    {
        return deviceName;
    }
    public void setInstallationDate(Date installationDate)
    {
        this.installationDate = installationDate;
    }

    public Date getInstallationDate()
    {
        return installationDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("deviceId", getDeviceId())
            .append("roomId", getRoomId())
            .append("deviceName", getDeviceName())
            .append("installationDate", getInstallationDate())
            .toString();
    }
}
